package com.zhuss.team.publish;

import com.zhuss.bean.bo.team.publish.SearchPublishBo;
import com.zhuss.bean.bo.team.question.SearchQuestionBo;
import com.zhuss.common.ReadService;
import com.zhuss.exception.WpsException;
import com.zhuss.team.processor.PublishRead;
import com.zhuss.team.processor.QuestionRead;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;

/**
 * @Author: zhushanshuo
 * @Date: 2020/3/3 14:25
 */
@Component("publishReadService")
public class PublishReadService implements ReadService<Object,Object> {

    @Autowired
    @Qualifier("publishRead")
    private PublishRead publishRead;

    @Override
    public Object detail(Object o) throws WpsException {
        return null;
    }

    @Override
    public Object list(Object o) throws WpsException {
        SearchPublishBo bo = (SearchPublishBo) o;
        Object result = publishRead.list(bo);
        return result;
    }
}
